import service from "../request.ts";

//创建文章接口
export const CreateArticleApi = (params: any) =>
  service.post("/CreateArticle", params);
//获取文章列表接口
export const GteArticleListApi = (params: any) =>
  service.post("/GteArticleList", params);
//获取文章和作者信息详情
export const GetArticleAndAuthorDetailApi = (params: any) =>
  service.post("/GetArticleAndAuthorInfoDetails", params);
//获取菜单列表
export const GetMenuTabsApi = () => service.post("/GetMenuTabs");
//文章点赞操作
export const LikeArticleApi = (params: any) =>
  service.post("/LikeArticle", params);
//获取沸点菜单列表
export const GetPinsTabsApi = () => service.post("/GetPinsTabs");

//获取话题活动列表
export const GetActivityListApi = (params: any) =>
  service.post("/GetActivityList", params);

//获取用户列表
export const GetAuthorListApi = (params: any) =>
  service.post("/GetAuthorList", params);

//获取广告列表
export const GetAdvertisementListApi = () =>
  service.get("/GetAdvertisementList");

//获取关键词提示
export const GetKeyTipsListAPi = (params: any) =>
  service.post("/GetKeyTipsList", params);
